import javax.swing.JFrame;
import javax.swing.*;

public class ComboBoxTest extends JFrame {

	public ComboBoxTest() {
		JPanel jp = new JPanel();
		JComboBox hour = new JComboBox();
		hour.addItem("1");
		hour.addItem("2");
		hour.addItem("3");
		hour.addItem("4");
		hour.addItem("5");
		hour.addItem("6");
		hour.addItem("7");
		hour.addItem("8");
		hour.addItem("9");
		hour.addItem("10");
		hour.addItem("11");
		hour.addItem("12");
		jp.add(hour);
		setTitle("ComboBox");
		setSize(300, 300);
		setVisible(true);
		add(jp);
	}

	public static void main(String[] args) {
		ComboBoxTest cb = new ComboBoxTest(); 

	}

}
